package com.woniuxy.entitys;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * tb_permission
 * @author 
 */
public class TbPermission implements Serializable {
    private Integer id;

    private Integer pid;

    private String menuName;

    private String path;

    private String beiyong1;

    private String beiyong2;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getBeiyong1() {
        return beiyong1;
    }

    public void setBeiyong1(String beiyong1) {
        this.beiyong1 = beiyong1;
    }

    public String getBeiyong2() {
        return beiyong2;
    }

    public void setBeiyong2(String beiyong2) {
        this.beiyong2 = beiyong2;
    }

    private List<TbPermission> children = new ArrayList<TbPermission>();

    public TbPermission(Integer id, Integer pid, String menuName, String path, String beiyong1, String beiyong2, List<TbPermission> children) {
        this.id = id;
        this.pid = pid;
        this.menuName = menuName;
        this.path = path;
        this.beiyong1 = beiyong1;
        this.beiyong2 = beiyong2;
        this.children = children;
    }

    public TbPermission() {
    }

    @Override
    public String toString() {
        return "TbPermission{" +
                "id=" + id +
                ", pid=" + pid +
                ", menuName='" + menuName + '\'' +
                ", path='" + path + '\'' +
                ", beiyong1='" + beiyong1 + '\'' +
                ", beiyong2='" + beiyong2 + '\'' +
                ", children=" + children +
                '}';
    }

    public void setChildren(List<TbPermission> children) {
        this.children = children;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public List<TbPermission> getChildren() {
        return children;
    }
}